#ifndef BOSS_Afterburner_Globals_Functions_Hist_H
#define BOSS_Afterburner_Globals_Functions_Hist_H

#include "Particle/ReconstructedParticle.h"
#include "TH1.h"

namespace BOSS_Afterburner
{
  /// @addtogroup Afterburner_functions
  /// @{
  /// Namespace containing functions related to generating and modifying histograms.
  /// @author  Remco de Boer 雷穆克 (r.e.deboer@students.uu.nl or remco.de.boer@ihep.ac.cn)
  /// @date    November 20th, 2018
  namespace Hist
  {
    TH1D CreateInvariantMassHistogram(const ReconstructedParticle& particle, const int nBins = 200);
    void SetAxisTitles(TH1* hist, const char* xAxis, const char* yAxis = nullptr,
                       const char* zAxis = nullptr, bool update = true);
  } // namespace Hist
  /// @}
} // namespace BOSS_Afterburner

#endif